﻿
@{
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
    ViewBag.Title = "首页";
}

<div class="col-md-2">
    <div class="list-group">
        <a href="/Exam/ExamAdmin" class="list-group-item ">课程管理</a>
        <a href="/Exam" class="list-group-item ">试题管理</a>
        <a href="/Exam/HistAdmin" class="list-group-item active">文件管理</a>
    </div>
</div>

<div class="col-md-10">
    <div class="page-header clearfix">
        <h4 class="pull-left">文件管理</h4>
        <!--操作按钮-->
        <div class="pull-right">
            <a class="btn btn-success btn-sm" data-url="/ExamAdd/GetExam" data-toggle="modal" data-target="#modalAddUser">添加文集</a>
        </div>
    </div>

    <!--内容区域-->
    <form id="user-search-form" class="form-inline well well-sm" action="/Exam/QueryExam" method="post" novalidate="">

        <div class="form-group">
            <input type="text" id="keyword" name="ExamName" class="form-control" value="" placeholder="添加相关词">
        </div>
        <button class="btn btn-primary" type="submit">搜索</button>
    </form>
    <table id="user-table" class="table table-striped table-hover" data-search-form="#user-search-form">
        <thead>
            <tr>
                <th>序号</th>
                <th>文集名</th>
                <th>上传时间</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <tr id="user-table-tr-6">
                <td style="width:10%;">
                    <strong>
                        <a href="/Admin/SingleUser/1" data-toggle="modal" data-target="#myModal">292</a>
                    </strong>
                </td>
                <td style="width:80%">
                    Web.Config中的重要节点是什么？
                </td>

                <td style="width:10%;">
                    <div class="btn-group">

                        <a href="#" data-toggle="modal" data-target="#myModal" data-remote="/Exam/GetExam/292" class="btn btn-default btn-sm">查看</a>
                        <a href="#" type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                            <span class="caret"></span>
                        </a>

                        <ul class="dropdown-menu">
                            <li><a onclick="Getids(292)" data-target="#myModalEdit" data-toggle="modal">编辑</a></li>
                            <li><a href="/Exam/ExamDel/292" onclick="return confirm('确定要删除吗？')">删</a></li>
                        </ul>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>

    <!--分页-->
    @*<nav class=" text-center">
        <ul id="pagination-demo" class="pagination-sm pagination"><li class="first disabled"><a href="/Exam/ExamAdmin/?pageIndex=1">首页</a></li><li class="prev disabled"><a href="/Exam/ExamAdmin/?pageIndex=1">上一页</a></li><li class="page active"><a href="/Exam/ExamAdmin/?pageIndex=1">1</a></li><li class="page"><a href="/Exam/ExamAdmin/?pageIndex=2">2</a></li><li class="page"><a href="/Exam/ExamAdmin/?pageIndex=3">3</a></li><li class="page"><a href="/Exam/ExamAdmin/?pageIndex=4">4</a></li><li class="page"><a href="/Exam/ExamAdmin/?pageIndex=5">5</a></li><li class="next"><a href="/Exam/ExamAdmin/?pageIndex=2">下一页</a></li><li class="last"><a href="/Exam/ExamAdmin/?pageIndex=37">尾页</a></li></ul>
        <script>
            var count;
            $('#pagination-demo').twbsPagination({
                totalPages: 37,
                first: "首页",
                prev: "上一页",
                next: "下一页",
                last: "尾页",
                href: '/Exam/ExamAdmin/?pageIndex={{pageNumber}}',
                hrefVariable: '{{pageNumber}}'
            });
        </script>
    </nav>*@
</div>